home *** CD-ROM | disk | FTP | other *** search
- /* assert.c --- BIBLE pp. 75-76 */
- #include <stdio.h>
- #include <assert.h>
- main(int argc, char **argv)
- {
- int i;
- /* Make sure that there is more than one argument */
- assert(argc > 1);
- /* Just print out the arguments */
- printf("Thanks for these \"arguments\"\n");
- for (i=0; i<argc; i++)
- {
- printf("Argument %d = %s\n", i+1, argv[i]);
- }
- }